<!DOCTYPE html>
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@taglib uri="http://www.springframework.org/tags/form" prefix="form"%>
<%@taglib prefix="spring" uri="http://www.springframework.org/tags" %>
<html>
	<head>
		<meta charset="utf-8">
		<title>Delegation management : <spring:message code="delegation.new" text="New Delegation" var="newDelegation" /></title>
	</head> 
	<body>
		<header>
		<h1>${newDelegatio}</h1>
			<nav>
				<%@include file="Nav.jsp" %>
			</nav>
		</header>

		<spring:url value="/delegation/save" var="urlsave" />
		<form:form method="post" action="${urlsave}" commandName="delegation">

        <div>
        	<form:label path="name"><spring:message code="delegation.name" text="Name" /></form:label>
        	<form:errors path="name" />
        </div>
        <div><form:input path="name" /></div> 

        <div>
        	<form:label path="description"><spring:message code="delegation.description" text="Delegation Description" /></form:label>        	
        	<form:errors path="description" />
        </div>
        <div><form:input path="description" /></div>
        
        <div>
        	<form:label path="address"><spring:message code="delegation.address" text="Delegation Address" /></form:label>        	
        	<form:errors path="address" />
        </div>
        <div><form:input path="address" /></div>
        
        <div>
        	<form:label path="idcity"><spring:message code="delegation.idCity" text="Delegation Id City" /></form:label>        	
        	<form:errors path="idcity" />
        </div>
        <div><form:input path="idcity" /></div>
        
        <div>
            <input type="submit" value="${newDelegation}" />
        </div>
     
</form:form>
	</body>
</html>